#ifndef						_COMMON_H_
#define						_COMMON_H_

#include "ReturnValue.h"

#define		SAFE_DELETE(x)		if(x) { delete x; x = 0; }
#ifndef		GRAD_PI 
#define		GRAD_PI				57.29577951f
#endif
#ifndef		GRAD_PI2
#define		GRAD_PI2			0.0174532925f
#endif

enum DEFAULT_VALUE
{
	DEFAULT_FRAMERATE	= 50,
	DEFAULT_SWIDTH		= 1600,
	DEFAULT_SHEIGHT		= 1280,
};

enum DEFAULT_TEXTURE
{
	DEFAULT_WOOD0	= 0,
	DEFAULT_WOOD1,
	DEFAULT_WOOD2,
	DEFAULT_CONCRETE0,
	DEFAULT_CONCRETE1,
	DEFAULT_CONCRETE2,
};

enum CATEGORY
{
	ACTION = 0, 
	HORROR,
	CLASSIC,
	COMEDY,
	DOCUMENTARIES,
	MUSIC,
	KIDS,
	ROMANCE,
	TV_SHOWS,
	DRAMAS,
	THRILLERS,
	QUERY,
};

struct rVector3
{
	float x, y, z;

	rVector3()
	{
		x = y = z = 0;
	}

	rVector3(float x, float y, float z)
	{
		this->x = x;
		this->y = y;
		this->z = z;
	}

	void operator=(const rVector3 vec)
	{
		this->x = vec.x;
		this->y = vec.y;
		this->z = vec.z;
	}
};

#endif						//_COMMON_H_